package com.atguigu.gulimall.cart.service;

import com.atguigu.gulimall.cart.vo.CartItemVo;
import com.atguigu.gulimall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;


public interface CartService {
    CartItemVo addCartItem(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartRedis(Long skuId);

    CartVo getCart() throws Exception;

    void updateCheckCart(Long skuId, Integer checked);

    void updateNumCart(Long skuId, Integer num);

    void deleteCartItem(Long skuId);
}
